﻿using Abp.Application.Services.Dto;
using SingleUserMall.Common;
using SingleUserMall.Videos.VO;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Videos
{
    /// <summary>
    /// 视频管理
    /// </summary>
    [Description("视频管理")]
    public interface IVideoAppService : IAppService
    {
        /// <summary>
        /// 获取视频列表
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<PagedResultDto<VideoVO>> GetVideosAsync(PagedForm form);

        /// <summary>
        /// 获取视频详情
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<VideoVO> GetVideoAsync(SingleId<long> form);
        /// <summary>
        /// 观看视频
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task WatchVideoAsync(SingleId<long> form);
    }
}
